#include "Grid.h"
Grid::Grid(float left_r, float right_r, float up_z, float down_z, int num_r, int num_z) {
          its_left_r    = left_r;
          its_right_r   = right_r;
          its_up_z      = up_z;
          its_down_z    = down_z;
          its_num_r     = num_r;
          its_num_z     = num_z;
          h_r = (its_right_r - its_left_r)/(its_num_r-1);
          h_z = (its_up_z - its_down_z)/(its_num_z-1);
      };
      
float Grid::getDelta() {
       return h_z*h_r;
   };

float Grid::getPointR(int i) { return its_left_r + i*h_r;}
float Grid::getPointZ(int j) { return its_down_z + j*h_z;}
            
      

  
